//
//  LYLNoneMessageCell.m
//  ONE
//
//  Created by dllo on 16/6/12.
//  Copyright © 2016年 GroupNine. All rights reserved.
//

#import "LYLNoneMessageCell.h"

NSString *const kLYLNoneMessageCellID = @"LYLNoneMessageCellID";

@implementation LYLNoneMessageCell

+ (CGFloat)cellHeight
{
    return 100.0;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self createCell];
    }
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createCell];
    }
    return self;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}

#pragma mark --创建无数据cell
- (void)createCell
{
    if (_hintView) {
        return;
    }
    
    self.contentView.backgroundColor = [UIColor whiteColor];
    
    _hintView = [UIImageView new];
    _hintView.contentMode = UIViewContentModeScaleAspectFit;
    _hintView.image = [UIImage imageNamed:@"sofa_image"];
    [self.contentView addSubview:_hintView];
    [_hintView makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
}

@end
